namespace QueryBuilder.Core.Query
{
    /// <summary>
    /// 
    /// </summary>
    public class OrderBy
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OrderBy"/> class.
        /// </summary>
        /// <param name="constraint">The constraint.</param>
        /// <param name="type">The type.</param>
        public OrderBy(Constraint constraint, OrderByType type)
        {
            this.Constraint = constraint;
            this.Type = type;
        }

        /// <summary>
        /// Gets or sets the constraint.
        /// </summary>
        /// <value>The constraint.</value>
        public Constraint Constraint { get; set; }
        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>The type.</value>
        public OrderByType Type { get; set; }
    }
}